Get Windows Credentials
AutomatR.DefaultActivities.WindowsCredentials.GetWindowsCredentials
The "Get Windows Credentials" activity in AutomatR allows you to obtain the credentials for a specified target from the Windows Credential Manager. It retrieves the username as a string and the password as a secure string, which provides a secure way to store sensitive information like passwords. This activity is useful for securely obtaining stored credentials for authentication or other secure purposes.
Properties
Name | Description |
---|---|
Input | |
Target Name | Represents the network address associated with the stored credentials. This should be the target system or service for which the credentials are stored. String variables containing the target name. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get Windows Credentials" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 5 seconds, enter 5. |
Output | |
Secure Password | Represents the user's password as a secure string variable. SecureString is a secure way to store sensitive information like passwords. This secure password can be used for authentication or securely storing credentials. SecureString variables to store the obtained secure password. |
User Name | Specifies the username associated with the stored credentials. This is the username used to authenticate with the target system or service. String variables to store the obtained username. |
How to use:
- Drag and drop the "Get Windows Credentials" activity onto the workflow.
- Specify the target name for which you want to obtain the credentials.
- Optionally, set the delay for the execution.
- Execute the workflow to retrieve the username and secure password for the specified target from the Windows Credential Manager.
Example:
Consider an example where the "Get Windows Credentials" activity is used to obtain stored credentials for a network address:
Get Windows Credentials:
Display Name: "Retrieve Network Credentials"
Target Name: "\\server\share"
User Name: obtainedUserName
Secure Password: obtainedSecurePassword
In this example, the activity retrieves the username and secure password associated with the network address "\server\share" from the Windows Credential Manager. The obtained username is stored in the string variable "obtainedUserName," and the secure password is stored in the SecureString variable "obtainedSecurePassword" for further handling in the workflow.
Note: Ensure that the target name is specified before executing this activity.